POV-Ray : Newsgroups : povray.beta-test : atan() not working ? : atan() not working ? Server Time
31 Jul 2024 04:18:56 EDT (-0400)
  atan() not working ?  
From: Philippe Debar
Date: 9 Sep 2001 08:27:57
Message: <3b9b604d$1@news.povray.org>
Problem : can't use atan() float function

This one line :
#declare test=atan(1);

Gives this :
#declare test=atan <----ERROR

Parse Error: Expected 'RValue to declare', atan found instead



... and this one-liner :
#declare test=1+atan(1);

Gives this :
#declare test=1+atan <----ERROR

Parse Error: Expected 'numeric expression', atan found instead



Workaround : use atan2(,) which works fine



Sys info :
POV-Ray 3.5 b1
Win 2k pro sp2
Ahtlon 1.2 GHz
512 MB DDR


Sorry if this is documented somewhere, I did not RTFM completely (but I did
an "atan" search on the doc and here)


Povingly,


Philippe


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.